package com.zhb.cloud.enums;

/**
 * @ClassName: ResultCodeEnum
 * @author: zhb
 * @date: 2017年11月22日 下午9:22:44
 * @Description: 返回code的定义
 *
 */
public enum ResultCodeEnum {
	SUCCESS(200, "操作成功"), ERROR(500, "系统错误"), PARAMETER_ERROR(200, "参数错误"),;

	private Integer code;

	private String desc;

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	private ResultCodeEnum(Integer code, String desc) {
		this.code = code;
		this.desc = desc;
	}
}
